package com.ydl.shopping.thread;


import com.ydl.shopping.domain.TbLoginInfo;
import com.ydl.shopping.service.ITbLoginInfoService;

public class SaveLoginInfoThread extends Thread{
    private final TbLoginInfo tbLoginInfo;
    private final ITbLoginInfoService tbLoginInfoService;

    public SaveLoginInfoThread(TbLoginInfo tbLoginInfo, ITbLoginInfoService tbLoginInfoService) {
        this.tbLoginInfo = tbLoginInfo;
        this.tbLoginInfoService = tbLoginInfoService;
    }

    @Override
    public void run() {
        tbLoginInfoService.save(tbLoginInfo);
    }
}
